//
//  YZUser.h
//  VET
//
//  Created by Lam BG on 2018/7/2.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface YZUser : NSObject

SingletonH

@property (nonatomic, copy) NSString *uid;

@property (nonatomic, copy) NSString *token;

@property (nonatomic, copy) NSString *uniqueId;
/**头像*/
@property (nonatomic, copy) NSString *avatar;
/**头像*/
@property (nonatomic, copy) NSString *avatarOriginal;
/**真实名字*/
@property (nonatomic, copy) NSString *name;
/**昵称*/
@property (nonatomic, copy) NSString *nickName;
/**工作机构*/
@property (nonatomic, copy) NSString *company;
/**认证状态 0-未认证；1-认证中，2-已认证*/
@property (nonatomic, assign) NSInteger authStatus;
/**职业信息*/
@property (nonatomic, copy) NSString *professionType;
/**所在省*/
@property (nonatomic, copy) NSString *province;
/**所在城市*/
@property (nonatomic, copy) NSString *city;
/**手机号码*/
@property (nonatomic, copy) NSString *phone;
/*设备号*/
@property (nonatomic, copy) NSString *deviceToken;
/*个人设置相关*/
@property (nonatomic, copy) NSArray *userProperties;

/** 保存用户信息 */
- (void)storeUserToLocal:(NSDictionary*)data;

/** 获取本地用户信息 */
- (YZUser *)getLocalUser;

/** 清除本地用户信息 */
+ (BOOL)clearLocalUser;

@end
